package org.mtmi.ui.controls.edits;

import java.util.List;

import org.mtmi.ui.actions.ActionFactory;
import org.mtmi.ui.actions.IAction;
import org.mtmi.ui.controls.Spinner;

public class SpinnerControlEditor extends AbstractRangeValueControlEditor
{

	public SpinnerControlEditor( Spinner c) {
		super(c);
	}

	@Override
	public Spinner getControl() { return (Spinner)super.getControl(); }
	
	@Override
	public List<IAction> getControlActions() {
		List<IAction> actions = super.getControlActions();
		actions.add( ActionFactory.FOREGROUND_COLOR );
		actions.add( ActionFactory.BACKGROUND_COLOR );
		actions.add( ActionFactory.TOGGLE_ORIENTATION );
		return actions;
	}
}
